package org.zk.entity;





import java.io.Serializable;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author Alicelonely
 * @since 2019-12-11
 */
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;


    private Integer commentId;
    /**
     * user表外键
     */

    private User user;
    /**
     * 评论内容
     */

    private String commentContent;
    /**
     * 发表时间
     */

    private  String commentTime;
    /**
     * 0好评  1差评
     */

    private Integer commentStatus;
    /**
     * 学习表外键
     */

    private Study study;
    /**
     * 课程的外键
     */

    private Course course;


    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", user=" + user +
                ", commentContent='" + commentContent + '\'' +
                ", commentTime='" + commentTime + '\'' +
                ", commentStatus=" + commentStatus +
                ", study=" + study +
                ", course=" + course +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public String getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(String commentTime) {
        this.commentTime = commentTime;
    }

    public Integer getCommentStatus() {
        return commentStatus;
    }

    public void setCommentStatus(Integer commentStatus) {
        this.commentStatus = commentStatus;
    }

    public Study getStudy() {
        return study;
    }

    public void setStudy(Study study) {
        this.study = study;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }
}
